-
-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regreet: respect dark mode and do not set extraCss #723
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For regreet to be themed correctly, users need to start regreet with dbus environment. Nixpkgs does this by default but I don't know how to help people with special configurations.
Any way for us to replicate Nixpkgs's behavior?
Well, I guess I could trigger a warning that stylix may not style regreet correctly when regreet is misconfigured and can't get styled by global gtk. But that seems kind of common sense to me. Misconfigured meaning that there are custom values under |
Sadly, it might not be obvious to people just installing Stylix without digging into the source code. Adding a
That could be the condition of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do a git rebase master
and ensure that the CI passes. Then, you can locally run the CI for this PR with:
nix build .#checks.x86_64-linux.git-hooks
186a69e
to
747d75a
Compare
ReGreet will choose dark colors from the GTK theme if we instruct it to do so. ReGreet uses the global GTK theme if the environment is set the default Nixpkgs configuration takes care of that so extraCss will be left free for actual user overrides.
Successfully created backport PR for |
Respect the stylix.polarity option and unset programs.regreet.extraCss to enable custom styling. This partially resolves the "ReGreet not using GTK or cursor theme" [1] issue. [1]: #690 Link: #723 Reviewed-by: NAHO <[email protected]> (cherry picked from commit 5c84f02)
Respect the stylix.polarity option and unset programs.regreet.extraCss to enable custom styling. This partially resolves the "ReGreet not using GTK or cursor theme" [1] issue. [1]: #690 Link: #723 Reviewed-by: NAHO <[email protected]> (cherry picked from commit 5c84f02)
ReGreet will choose dark colors from the GTK theme if we instruct it to do so.
ReGreet uses the global GTK theme if the environment is set the default Nixpkgs configuration takes care of that so extraCss will be left free for actual user overrides.
For regreet to be themed correctly, users need to start regreet with dbus environment. Nixpkgs does this by default but I don't know how to help people with special configurations.
Motivated by #690